//
//  NetWorkingManager.h
//  Clinic_Doctor
//
//  Created by 杨春至 on 2017/4/10.
//  Copyright © 2017年 提运佳. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>

@interface NetWorkingManager : NSObject

+(void)getWithRequestUrl:(NSString *)requestHead AndParameters:(NSDictionary *)param AndRequestBlock:(void(^)(NSDictionary *responseObject))block FailBlock:(void(^)(NSDictionary *errDic))failBlock;

+(void)postWithRequestUrl:(NSString *)requestHead AndParameters:(NSDictionary *)param AndRequestBlock:(void(^)(NSDictionary *responseObject))block FailBlock:(void(^)(NSDictionary *errDic))failBlock ShowTips:(BOOL)showTips;
//body
+ (void)postWithUrl:(NSString *)url body:(NSData *)body success:(void(^)(NSDictionary *response))success failure:(void(^)(NSError *error))failure;

//表单
+ (void)postWithRequestUrl:(NSString *)requestHead AndParameters:(NSDictionary *)param FormateDict:(NSDictionary *)formatDict AndRequestBlock:(void (^)(NSDictionary *respondDic))block FailBlock:(void (^)(NSDictionary *failDict))failBlock;
//Put
+ (void)PutWithRequestUrl:(NSString *)requestHead AndParameters:(NSDictionary *)param AndRequestBlock:(void(^)(NSDictionary *responseObject))block FailBlock:(void(^)(NSDictionary *errDic))failBlock;

+ (void)reachNetwork;
+ (void)reachNetwork:(void(^)(void))reachableBlock;

+(void)postWithRequestUrl:(NSString *)requestHead AndParameters:(NSDictionary *)param AndRequestBlock:(void(^)(NSDictionary *responseObject))block FailBlock:(void(^)(NSDictionary *errDic))failBlock;
@end
